package demo.bocweb.com.sdk.baseApi;

import demo.bocweb.com.sdk.util.Loading;
import demo.bocweb.com.sdk.util.ToastyUtil;
import io.reactivex.functions.Consumer;

/**
 * Created by zhelun on 2018/1/26.
 */

public class BaseErrorObserver implements Consumer<Throwable> {
    @Override
    public void accept(Throwable throwable) throws Exception {
        Loading.dismiss();
        ToastyUtil.showError("网络异常");
    }
}
